home *** CD-ROM | disk | FTP | other *** search
/ Tripas 2 / TRIPAS 002.iso / RRRA.exe / MINION.CON < prev    next >
Encoding:
Text File  |  1998-07-02  |  5.1 KB  |  266 lines

  1. // TURD MINION
  2.  
  3. action AMINRUN      0   8  5  1 11
  4. action AMINTHROW   40  11  5  1 18
  5. action AMINFREAK   95   5  5  1 8
  6. action AMINFREAK2  95   5  5  1 8
  7. action AMINJUMP   120   4  5  1 26
  8. action AMINFALL   140   4  5
  9.  
  10. move MINRUNVEL    125 -16
  11. move MINJUMPVEL   264      // This value seems to control how far
  12.                            // the Minion jumps
  13. move MINJUMPVEL2  396
  14. move MINSTOP
  15.  
  16. ai AIMINDODGE     AMINRUN     MINRUNVEL  dodgebullet
  17. ai AIMINJUMP      AMINJUMP    MINJUMPVEL jumptoplayer
  18. ai AIMINRUN       AMINRUN     MINRUNVEL  geth
  19. ai AIMINTHROW     AMINTHROW   MINSTOP    faceplayer
  20. ai AIMINFREAK     AMINFREAK   MINSTOP    faceplayerslow
  21. ai AIMINFREAK2    AMINFREAK   MINSTOP    spin
  22. ai AIMINAMBUSH    AMINJUMP    MINJUMPVEL2 jumptoplayer
  23.  
  24. state minfreakstate
  25.  
  26.   ifactioncount 2
  27.       soundonce MN_FREAK
  28.  
  29.   // if we've done our dance 10 times
  30.   // and we're close to the player
  31.   // Self-destruct and cause damage
  32.   ifactioncount 20
  33.   {
  34.     ifpdistl 854
  35.     {
  36.       sound SQUISHED
  37.       state standard_minionjibs
  38.       addphealth MINIONFREAK
  39.       killit
  40.     }
  41.     // else run
  42.     else
  43.       ai AIMINRUN
  44.   }
  45. ends
  46.  
  47. state minfreakstate2
  48.  
  49.   ifactioncount 2
  50.       soundonce MN_FREAK
  51.  
  52.   // if we've done our dance 10 times
  53.   // and we're close to the player
  54.   // Self-destruct and cause damage
  55.   ifactioncount 20
  56.   {
  57.     ifpdistl 4096
  58.     {
  59.       ifrnd 32
  60.       {
  61.         shoot SHITBALL
  62.         shoot SHITBALL
  63.         state minion_shitshower
  64.         soundonce LN_CRAP
  65.       }
  66.       ifactioncount 26
  67.       {
  68.         sound SQUISHED
  69.         ifpdistl 854
  70.         {
  71.           addphealth MINIONFREAK
  72.         }
  73.         soundonce LN_CRAP
  74.         state standard_minionjibs
  75.         state standard_minionjibs
  76.         killit
  77.       }
  78.     }
  79.     else
  80.       ai AIMINFREAK
  81.   }
  82.  
  83. ends
  84.  
  85. state minjumpstate
  86.   // If we're on frame AMINFALL, define above
  87.   // (last frame of AMINJUMP) and distance to floor < 16
  88.   // Start Running
  89.   ifaction AMINFALL
  90.   {
  91.     iffloordistl 16
  92.       ai AIMINRUN
  93.   }
  94.   // Else continue Jump anim until count > NN
  95.   // Then force frame to AMINFALL
  96.   // The ifcount NN controls the timing
  97.   // on when the Minion goes into his ready to land
  98.   // frame.  To tweak the timing on this
  99.   // adjust the ifcount NN value.
  100.   else
  101.     ifcount 32
  102.       action AMINFALL
  103. ends
  104.  
  105. state minrunstate
  106.     // If we've gone through 12 cycles of the
  107.     // Run animation, either Run again (low prob)
  108.     // OR
  109.     //  Throw shit (highest prob)
  110.     //  Jump       (middle  prob)
  111.     //  Freak      (low     prob)
  112.     ifactioncount 12
  113.     {
  114.       // Keep on running
  115.       ifrnd 4
  116.       {
  117.         resetactioncount
  118.         resetcount
  119.       }
  120.       else
  121.       {
  122.         // If we can see the player
  123.         ifcansee
  124.         {
  125.           // either throw, jump, or freak
  126.           ifrnd 32
  127.             ai AIMINTHROW
  128.           else ifrnd 16
  129.             ai AIMINJUMP
  130.           else ifrnd 8
  131.             ai AIMINFREAK
  132.           else ifrnd 4
  133.             ai AIMINFREAK2
  134.         }
  135.         // Go find player
  136.         else
  137.           move MINRUNVEL seekplayer
  138.  
  139.       }
  140.     }
  141. ends
  142.  
  143. state minthrowstate
  144.     ifcount 18 {
  145.       shoot SHITBALL
  146.       ifspritepal 8
  147.       {
  148.         sound FROGTOSS 
  149.       }
  150.       ai AIMINRUN
  151.     }
  152. ends
  153.  
  154.  
  155. state checkminhit
  156.   //
  157.   spawn BLOOD
  158.   ifdead
  159.   {
  160.     // Sound Dying sounds, spray jibs
  161.     // Then delete Minion from game
  162.     addkills 1
  163.     sound SQUISHED
  164.     state standard_minionjibs
  165.  
  166.     // If Minion is close to player
  167.     // Inflict damage
  168.     ifpdistl 854
  169.       addphealth MINIONFREAK
  170.  
  171.     killit
  172.     // sound HULK_DYING
  173.   }
  174.   else
  175.   {
  176.     sound MN_PN
  177.     state random_wall_jibs
  178.  
  179.     // If there are projectiles near
  180.     // Dodge or Throw (same prob)
  181.     // else if none of above selected
  182.     // No change (current ai will continue)
  183.     ifbulletnear
  184.     {
  185.        ifrnd 32
  186.          ai AIMINDODGE
  187.        else ifrnd 32
  188.          ai AIMINTHROW
  189.     }
  190.     // else No projectiles near so
  191.     // either
  192.     // Throw (high prob)
  193.     // Jump  (mid  prob)
  194.     // Freak (low  prob)
  195.     // No change (current ai will continue)
  196.     else ifrnd 32
  197.        ai AIMINTHROW
  198.     else ifrnd 16
  199.        ai AIMINJUMP
  200.     else ifrnd 8
  201.        ai AIMINFREAK
  202.   }
  203. ends
  204.  
  205. actor MINION MINIONSTRENGTH AMINRUN
  206.   fall
  207.   state checksquished
  208.   ifai 0
  209.   {
  210.     cstator 257
  211.     ifspritepal 7
  212.     {
  213.       ai AIMINAMBUSH
  214.     }
  215.     else
  216.     {
  217.       ai AIMINRUN
  218.     }
  219.   }
  220.   else
  221.   {
  222.     fall
  223.     ifai AIMINRUN
  224.     {
  225.       state minrunstate
  226.     }
  227.     else ifai AIMINTHROW
  228.     {
  229.       state minthrowstate
  230.     }
  231.     else ifai AIMINFREAK
  232.     {
  233.       state minfreakstate
  234.     }
  235.     else ifai AIMINFREAK2
  236.     {
  237.       state minfreakstate2
  238.     }
  239.     else ifai AIMINJUMP
  240.     {
  241.        state minjumpstate
  242.     }
  243.     else ifai AIMINDODGE
  244.     {
  245.        ifactioncount 4
  246.          ai AIMINRUN
  247.     }
  248.     else ifai AIMINAMBUSH
  249.     {
  250.       state minjumpstate
  251.     }
  252.   }
  253.  
  254.   ifhitweapon
  255.     state checkminhit
  256.  
  257.   ifrnd 1
  258.   {
  259.     ifrnd 32
  260.       soundonce MN_AMB
  261.     else ifrnd 128
  262.       soundonce MN_REC
  263.   }
  264.  
  265. enda
  266.